package com.xiaoxu.intranetweb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.xiaoxu.intranetweb.mybatisplusSzappdb.mapper,com.xiaoxu.intranetweb.mybatisplusWghticPicdb.mapper")
@EnableFeignClients
//开启多线程
@EnableAsync
@EnableScheduling
public class IntranetWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(IntranetWebApplication.class, args);
    }
    @Bean
    public HttpMessageConverter<?> customJackson2HttpMessageConverter() {
        return new MappingJackson2HttpMessageConverter();
    }
}
